package com.iversonx.observer.example_1.v2.listener;

import com.iversonx.observer.example_1.v1.SmsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *
 **/
@Component
public class SmsEventListener implements EventListener {
    @Autowired
    private SmsService smsService;
    @Override
    public void doEvent(String msg) {
        smsService.send(msg);
    }
}
